package com.rc.saas.tenant.service.discount;

import com.rc.saas.tenant.base.BaseService;
import com.rc.saas.tenant.mapper.discount.TenantDiscountTimeMapper;
import com.rc.saas.tenant.model.discount.TenantDiscountTime;
import com.rc.saas.tenant.model.discount.TenantDiscountTimeExample;
import com.rc.saas.tenant.vo.discount.DiscountTimeSaveVo;

import java.math.BigDecimal;
import java.text.ParseException;
import java.util.List;

/**
 * @author frog
 * @date 2019/11/25
 */
public interface TenantDiscountTimeService extends BaseService<Long, TenantDiscountTime, TenantDiscountTimeExample, TenantDiscountTimeMapper> {
    void insertDiscountTime(Long discountPolicyId, Long elecStationId,String discountType, String timeType, BigDecimal elecPrice,BigDecimal servicePrice,BigDecimal discount, List<DiscountTimeSaveVo> discountTimeSaveVoList, String tenantCode) throws ParseException;

    void insertDiscountTime(Long discountPolicyId, Long elecStationId,String discountType, String timeType, BigDecimal elecPrice,BigDecimal servicePrice,BigDecimal discount, List<DiscountTimeSaveVo> discountTimeSaveVoList, String tenantCode,Long discountStationId) throws ParseException;

}
